﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Mvc._5Dev.SettlementExpenses.ServiceReferenceSettlementExpenses.DailyExpense>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Create
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Create</h2>
    <% using (Html.BeginForm())
       {%>
    <%: Html.ValidationSummary(true) %>
    <fieldset>
        <legend>Fields</legend>
        <%--            <div class="editor-label">
                <%: Html.LabelFor(model => model.Id) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Id) %>
                <%: Html.ValidationMessageFor(model => model.Id) %>
            </div>--%>
        <div class="editor-label">
        Concept:
        </div>
        <div class="editor-field">
        <% foreach (var item in Model.CostConcepts)
           { %>
        <%= Html.CheckBox(item.Id.ToString()) %>
        &nbsp;
        <%= Html.Encode(item.Description) %>
        <% } %>
        </div>
        <div class="editor-label">
        Empleado:
        </div>
        <div class="editor-field">
        <select id="SelectSeccion" name="SelectSeccion">
            <option value="0">Seleccione</option>
            <%foreach (var item in Model.CostConcepts)
              { %>
            <option value="<%=item.Id %>">
                <%=item.Description%></option>
            <%} %>
        </select>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.CreateDate) %>
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.CreateDate) %>
            <%: Html.ValidationMessageFor(model => model.CreateDate) %>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.Mount) %>
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.Mount) %>
            <%: Html.ValidationMessageFor(model => model.Mount) %>
        </div>
        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
    <% } %>
    <div>
        <%: Html.ActionLink("Back to List", "Index") %>
    </div>
</asp:Content>
